package com.yumi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 线路信息表实体类
 */
@Data
@TableName("T_BSE_LINEINFO")
@Schema(description = "线路信息")
public class TBseLineinfo {

    /**
     * 线路ID
     */
    @TableId
    @Schema(description = "线路ID")
    private String lineId;

    /**
     * 线路名称
     */
    @NotBlank(message = "线路名称不能为空")
    @Schema(description = "线路名称")
    private String lineName;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除(0-未删除，1-已删除)
     */
    @TableLogic
    @Schema(description = "是否删除")
    private Integer deleted;
}